-module(gtp_sup).
-behaviour(supervisor).
-export([init/1]).
-export([start_link/0]).
-define(SERVER,?MODULE).
start_link() ->
	supervisor:start_link({local,?SERVER},?MODULE,[]).
init([]) ->
	Children = [
		{gtp_bearer_dispatcher,{gtp_bearer_dispatcher,start_link,[]},permanent,2000,worker,[gtp_bearer_dispatcher]},
		{gtp_bearer_server_sup,{gtp_bearer_server_sup,start_link,[]},permanent,2000,supervisor,[gtp_bearer_server_sup]}
		],
	RestartStrategy = {one_for_one,0,1},
	{ok,{RestartStrategy,Children}}.